package com.hd.service;

import com.hd.controller.dto.UserDto;
import com.hd.pojo.User;
import com.hd.tools.Pager;

import java.util.List;

/**
 * Created by 1 on 2017/11/16.
 */
public interface UserService {

    public User searchUserByLoginNameAndPwd(String loginName,String password);

    Pager searchByCondition(Integer offset, Integer limit, UserDto dto);

    User get(Integer userId);

    void updateUserRoleId(Integer userId,Integer roleId);

    void add(User user);

    void deleteUser(Integer userId);

    List<User> getUserByRoleId(Integer roleId);

    void updateUser(User user);

    void setPwdLiu(String loginName,String password);

    List<User> searchDirector();

    void updateInLiu(String loginName,String brithday,String name,int sex,String phone,String headerimg,String address);

    User getIndiv(String loginName);

    String getRole(int roleId);
}
